<script lang="ts" setup>
import { useI18n } from 'vue-i18n'

const { t } = useI18n()

interface Props {
	editForm: any
}

const props = defineProps<Props>()
</script>

<template>
	<div class="bg-white rounded-lg shadow-sm p-6">
		<a-divider class="text-lg font-semibold mb-6">{{ t('商品详细.其他信息') }}</a-divider>
		<div class="otherDataOperate">
			<a-form
				ref="otherDataFormRef"
				name="otherData"
				:model="editForm.otherData"
				:label-col="{ span: 4 }"
				:wrapper-col="{ span: 16 }">
				<a-form-item
					:label="t('商品详细.是否赠送运费险')"
					name="isPresentInsurance"
					:wrapper-col="{ span: 4 }">
					<a-switch v-model:checked="editForm.otherData.isPresentInsurance"></a-switch>
				</a-form-item>
			</a-form>
		</div>
	</div>
</template>

<style lang="scss" scoped></style>
